package org.mercworks.igamexmlparser.dvo;

import java.util.List;

public class Mesh
{
	private List<IGameVertex> listVertex;
	private Faces faces;
	
	/**
	 * @return the listVertex
	 */
	public List<IGameVertex> getListVertex()
	{
		return listVertex;
	}
	
	/**
	 * @param listVertex the listVertex to set
	 */
	public void setListVertex(List<IGameVertex> listVertex)
	{
		this.listVertex = listVertex;
	}
	
	/**
	 * @return the listFaces
	 */
	public Faces getFaces()
	{
		return faces;
	}
	
	/**
	 * @param listFaces the listFaces to set
	 */
	public void setFaces(Faces faces)
	{
		this.faces = faces;
	}
	
	public String toString()
	{
		StringBuffer sb = new StringBuffer();
		sb.append("\t\t*** FACE INFORMATION ***\n\t\t{\n");
		
		sb.append(faces.toString());
		
		sb.append("\t\t}\n\n");
		
		sb.append("\t\t*** VERTEX INFORMATION ***\n\t\t{\n");
		
		if(listVertex != null)
		{
			for(IGameVertex vertex : listVertex)
			{
				sb.append(vertex.toString());
			}
		}
		
		sb.append("\t\t}\n\n");
		
		return sb.toString();
	}
}
